package com.sxu.principles.demo5;

// 经济人类
public class Agent {
    private Star star;
    private Fans fans;
    private Company company;

    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    // 和粉丝见面的方法
    public void meeting(){
        System.out.println(star.getName() + "见粉丝" + fans.getName());
    }

    // 和媒体公司交流的方法
    public void business(){
        System.out.println(star.getName() + "洽谈公司" + company.getName());
    }
}
